package com.allan.springboot_wms.mapper;

import com.allan.springboot_wms.domain.Out;
import com.allan.springboot_wms.domain.OutExample;

import java.math.BigDecimal;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OutMapper {
    long countByExample(OutExample example);

    int deleteByExample(OutExample example);

    int deleteByPrimaryKey(@Param("outNum") Integer outNum, @Param("outName") String outName);

    int insert(Out record);

    int insertSelective(Out record);

    List<Out> selectByExample(OutExample example);

    Out selectByPrimaryKey(@Param("outNum") Integer outNum, @Param("outName") String outName);

    int updateByExampleSelective(@Param("record") Out record, @Param("example") OutExample example);

    int updateByExample(@Param("record") Out record, @Param("example") OutExample example);

    int updateByPrimaryKeySelective(Out record);

    int updateByPrimaryKey(Out record);

    BigDecimal sumProfit();

    int updateByOutNum(Out record);
}